# !/usr/bin/env python
# -*- coding:utf-8 -*-

a = {1, 2, 3}
b = {2, 3, 4}
c = a | b
print(c)
print(a - b)
print(a & b)
print(a ^ b)